import request from '@/utils/request'

export const firstPage = {
  contextPath: '/equip', //按照实际应用修改成微服务的名�?//
  getTzgl: () => { // 获取台账信息
    return request({
      url: firstPage.contextPath + '/enTjAnalyse/getTzgl',
      method: 'POST'
    })
  },
  getKfgl: () => { // 库房管理
    return request({
      url: firstPage.contextPath + '/enTjAnalyse/getKfgl',
      method: 'POST'
    })
  },
  getGdXx: (data) => { // 工单信息
    return request({
      url: firstPage.contextPath + '/enTjAnalyse/getGdXx?edate=' + data.edate + '&sdate=' + data.sdate,
      method: 'POST',
      // data:data
    })
  },
  getDefectsStatusXx: (data) => {
    return request({
      url: firstPage.contextPath + '/enTjAnalyse/getDefectsStatusXx?edate=' + data.edate + '&sdate=' + data.sdate,
      method: 'POST',

    })
  },
  getCrkList: (data) => {
    return request({
      url: firstPage.contextPath + '/enTjAnalyse/getCrkList?type=' + data.type,
      method: 'POST',

    })
  },


}
